import gconf
import os

# later, i can do more sophisticated go-wiki interfaces here.
# for now, just something simple:

# i googled, and turned up
# http://mail.gnome.org/archives/desktop-devel-list/2004-February/msg00178.html
# which says to read /desktop/gnome/applications/browser.
# so that's what i'll do...

go_wiki_root = 'http://senseis.xmp.net/'

def open_go_wiki():
    client = gconf.client_get_default()
    browser = client.get_string('/desktop/gnome/applications/browser/exec')
    os.spawnlp(os.P_NOWAIT, browser, browser, go_wiki_root)
